<!DOCTYPE html>
<html lang="en" manifest="test.manifest">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="b.css">
</head>
<body>
<script type="text/javascript" src="a.js"></script>
<script type="text/javascript">
    window.applicationCache.addEventListener('updateready',function(e){
        if(window.applicationCache.status == window.applicationCache.UPDATEREADY){
            window.applicationCache.swapCache();

            if(confirm("loding new?")){
                window.location.reload()
            }
        }
    },false)
</script>
</body>
</html>